
cc.Class({
    extends: cc.Component,

    properties: {
    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        // use capture mod to catch event
        this.node.on('myEvent', function (e) {
            cc.log('event is caught by:'+this.node.name+'(capture)');
        }, this, true)
    },

    start () {

    },

    // update (dt) {},
});
